package main

import (
	"echo_client/config"
	"echo_client/pkg/client"
	"log"
	"os"
)

func main() {
	log.SetOutput(os.Stdout)
	err := config.Init("config/config.yaml")
	if err != nil {
		panic(err)
	}
	c := client.NewClient()
	defer c.Close()
	go c.DealHandler()
	c.SendPollingMsg()
	c.ReceiveHandler()
}
